'use strict';
/**
 * Created by zhouzhongyuan on 2016/1/8.
 */
$app.service(function ($) {
  return {
    api: function (functionName, agrs, callback, options) {
      var url = functionName.replace(/\./g, "/");
      $.post("api/" + url + ".json", agrs, callback);
    }
  }
});